home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19951130-19960209 / 000221_news@columbia.edu _Wed Jan 3 17:44:25 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  5KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id RAA23870 for <kermit.misc@watsun>; Wed, 3 Jan 1996 17:44:19 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id RAA19349 for kermit.misc@watsun; Wed, 3 Jan 1996 17:44:08 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!hamblin.math.byu.edu!acs2.byu.edu!news.cuny.edu!news.sprintlink.net!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!news.kei.com!newsstand.cit.cornell.edu!newstand.syr.edu!usenet
  5. From: vefatica@syr.edu (Vincent Fatica)
  6. Newsgroups: comp.os.ms-windows.win95.misc,comp.protocols.kermit.misc
  7. Subject: Windows95/Kermit95 tidbits
  8. Date: Wed, 03 Jan 1996 20:55:12 GMT
  9. Organization: Syracuse University
  10. Lines: 88
  11. Message-ID: <30eadd0d.64335381@128.230.1.4>
  12. Reply-To: vefatica@syr.edu
  13. NNTP-Posting-Host: sudial-79.syr.edu
  14. X-Newsreader: Forte Agent .99c/16.141
  15. Xref: news.columbia.edu comp.os.ms-windows.win95.misc:81929 comp.protocols.kermit.misc:4417
  16.  
  17. Here's a couple of tidbits I'd like to share with other Kermit95 users. They
  18. are:
  19.  
  20.     A. Gaining greater control over terminal window appearance
  21.     B. Getting things to happen automatically
  22.  
  23. A. You can gain considerable control over the appearance of K95's terminal
  24. window (as much as you have over a DOS box) and not sacrifice a bit of
  25. Kermit's excellent terminal emulation.
  26.  
  27. 1. Copy c:\windows\dosprmpt.pif to c:\k95\k95.pif.
  28.  
  29. 2. Set k95.pif's "properties" so that it:
  30.  
  31.     (i) runs the program k95.exe
  32.     (ii) has enough environment, 2048 bytes should be sufficient ("Auto"
  33.  
  34.     won't work since K95 is a Windows program not a DOS one)
  35.  
  36.  
  37. Someone suggested also turning off EMS; it's not clear to me that this is
  38. necessary (since I don't have EMS).
  39.  
  40. 3. Wherever you would start k95.exe, start k95.pif instead. Unfortunately,
  41. the dialer will always start k95.exe, but if you use tidbit B, you can make
  42. connections as easily as with the dialer, but without it. 
  43.  
  44. The PIF allows you to set things like font, window size, behavior at exit,
  45. and so on, as you well know. Also, started in this way, Windows95 will
  46. remember the location of the window ... in case you don't like it always
  47. starting in the upper-right corner of the desktop.
  48.  
  49. FREEBIE: Starting K95 in this way also cures an unfortunate situation (not
  50. Kermit's fault) wherein if an app (say, Netscape, for telnetting) starts
  51. K95.exe, Windows does not hand over the keyboard to K95, making for a very
  52. uninteresting telnet session. Just start k95.pif instead ... the problem
  53. goes away. The appropriate telnet command for Netscape is:
  54.  
  55.     k95.pif -c -j
  56.  
  57. Netscape supplies the hostname.
  58.  
  59.  
  60. B. Making things happen automatically. This is best illustrated by example:
  61.  
  62. I have an oft-used entry called "Telnet gamera" in the K95 dialer. When I
  63. use the dialer to get to gamera, the dialer writes the script
  64. k95\tmp\telnet_gamera.scr then starts the "engine" (k95.exe) telling it to
  65. "take" the script. This is how the dialer starts all connections.
  66.  
  67. 1. I told the dialer to save this script by putting "set startup-file keep"
  68. in k95.ini
  69.  
  70. 2. I copied k95\tmp\telnet_gamera.scr to k95\scripts\gamera.ksc (use any
  71. extension here which has no W95 associations; don't use "scr" since W95
  72. thinks they're screensaver files)
  73.  
  74. 3. In Explorer/View/Options/FileTypes, I created the file type "Kermit
  75. script", assigned it the extension ".ksc" and associated with "Open" 
  76. the action:
  77.  
  78.          c:\k95\k95.exe -SC "take %1"
  79.  
  80.     [Or use "pif" instead of "exe" if you use tidbit A.]
  81.  
  82. (This is literal; S means "stay" [don't exit upon return to the K95 prompt];
  83. C means execute the Kermit command that follows.)
  84.  
  85. Voila! double-click "gamera.ksc" (or a shortcut to it) and a few moments
  86. later, I'm sitting at gamera's prompt. I've done this for all my frequent
  87. connections (telnet, dialed, and a direct connect via null modem to Linux
  88. too) and put shortcuts to each in a folder on my start menu. Now, a few
  89. clicks gets me there without messing with the dialer ... convenient!
  90.  
  91. And I discovered that the ksc file did not have to be anywhere special, 
  92. since Windows95 passes a fully qualified drive:\path\name (%1) to K95.exe.
  93.  
  94. And, of course, when Explorer shows me one of these ksc files in a folder 
  95. (with details) it identified as being of the type "Kermit script".
  96.  
  97. Enjoy!
  98.  
  99.  - Vince
  100. ___
  101.    Vincent Fatica
  102.    Syracuse University Mathematics
  103.    vefatica@syr.edu
  104.    http://barnyard.syr.edu/~vefatica/